From: Jonas Dreßler Date: Thu, 20 Jun 2019 21:01:52 +0000 (+0200) Subject: altTab: Ensure style of this._list before calculating icon sizes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~845^2^2~115 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=eab320dab59e702cda3d2864be2bb59c03d34d79;p=gnome-shell.git altTab: Ensure style of this._list before calculating icon sizes We're calculating icon sizes for the alt tab switcher early and at a point where the style attributes of this._list are not loaded yet. To make sure the value of this._list.spacing is correct, call ensure_style() on this._list before accessing the spacing. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/587 --- diff --git a/js/ui/altTab.js b/js/ui/altTab.js index ae9846552..6c9aaf1c1 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -728,6 +728,7 @@ class AppSwitcher extends SwitcherPopup.SwitcherList { j++; } let themeNode = this._items[j].get_theme_node(); + this._list.ensure_style(); let iconPadding = themeNode.get_horizontal_padding(); let iconBorder = themeNode.get_border_width(St.Side.LEFT) + themeNode.get_border_width(St.Side.RIGHT);